SDEF
// -----------------------------------------------------------------------------
//  $Logfile:: /Quake 2 Engine/Sin/Base Sin Data/Models/Monster/cworker.def   $
// $Revision:: 48                                                             $
//   $Author:: Joeske                                                         $
//     $Date:: 11/13/98 8:48p                                                 $
//
// Copyright (C) 1998 by Ritual Entertainment, Inc.
// All rights reserved.
//
// This source may not be distributed and/or modified without
// expressly written permission by Ritual Entertainment, Inc.
//
// This is a model definition file.  It is to be used in conjunction with Sin.
//
// -----------------------------------------------------------------------------
// MODEL DESCRIPTION:
// Construction Worker, normal guy doing his job.
//
// MODEL AUTHOR:
// Beau
//
/*SINED Monster_ConstrucWorker (1 .5 0) (0 0 0) (0 0 0)
Construction Worker
*/

// -----------------------------------------------------------------------------
// FILE DECLARATIONS
//
// Model Commands
path models/worker
scale 1.4

// Base Model
worker_base.sbm

// Skins
normal       cworker_base.tga
damage       cworker_damage.tga
roast_01a.tga

// Normal Animations
walk1         worker_walk.sam
run1          worker_run.sam
idle         worker_idle2.sam
//aim          worker_idle2.sam
twitch1      worker_idle1.sam // sniffs his armpit
twitch2      worker_scratch.sam
fire1        worker_attack1.sam
fire2        worker_attack2.sam
fire3        worker_attack3.sam
fire4        worker_attack4.sam

gibdeath_upper		worker_gibdeath1.SAM
gibdeath_lower		worker_gibdeath2.SAM

// Pain Location Based Animations
pain1        worker_painlegright.sam

pain_head              worker_painhead.sam
pain_torso_upper       worker_paintorsoupper.sam
pain_torso_lower       worker_paintorsolower.sam
pain_leg_right_upper   worker_painlegright.sam
pain_leg_right_lower   worker_painlegright.sam
pain_leg_left_upper    worker_painlegleft.sam
pain_leg_left_lower    worker_painlegleft.sam
pain_arm_right_upper   worker_painarmright.sam
pain_arm_right_lower   worker_painarmright.sam
pain_arm_left_upper    worker_painarmleft.sam
pain_arm_left_lower    worker_painarmleft.sam

// Death Location Based Animations
death1       worker_death1.sam
death2       worker_death2.sam
death3       worker_death3.sam

// Crouching Pain Location Based Animations

// Crouching Death Location Based Animations

// Optional Animations
worker_armsfolded.sam
push1		 worker_push.sam

// Scripted Animations
roast1	roast.sam

// Id And Group Definitions
id   5 group head              flesh
group head damage              3.0
id  15 group torso_upper       fabric
group torso_upper damage       1.0
id  18 group torso_lower       fabric
group torso_lower damage       1.0
id  45 group leg_left_upper    fabric
group leg_left_upper damage    0.8
id  50 group leg_left_lower    fabric
group leg_left_lower damage    0.6
id  65 group leg_right_upper   fabric
group leg_right_upper damage   0.8
id  70 group leg_right_lower   fabric
group leg_right_lower damage   0.6
id  85 group arm_left_upper    flesh
group arm_left_upper damage    0.8
id  90 group arm_left_lower    flesh
group arm_left_lower damage    0.6
id 105 group arm_right_upper   flesh
group arm_right_upper damage   0.8
id 110 group arm_right_lower   flesh
group arm_right_lower damage   0.6
id 200 group arm_left_lower bone gun -20 270 60 flesh
id   3 group head bone hat 225 40 -50 flesh

// -----------------------------------------------------------------------------
// INITIALIZATION SECTION
//
!init:

// SERVER Initialization Commands
//
// Class Setup
server classname actor
server script global/enemy_meleeweapon.scr
server setsize "-14 -14 0" "14 14 82"
server crouchsize "-16 -16 0" "16 16 48"
server weapon hammer
server health 150
server meleerange 120
server meleedamage 15
server painthreshold 30


// Sound Aliases
server aliascache snd_sightenemy1    "monsters/worker/wrksite1.wav" 1
server aliascache snd_sightenemy2    "monsters/worker/wrksite2.wav" 1
server aliascache snd_sightenemy3    "monsters/worker/wrksite3.wav" 1
server aliascache snd_sightenemy4    "monsters/worker/wrksite4.wav" 1
server aliascache snd_sightenemy5    "monsters/worker/wrksite5.wav" 1

server aliascache snd_pursuit1  "monsters/worker/wrkpurs1.wav" 1
server aliascache snd_pursuit2  "monsters/worker/wrkpurs2.wav" 1
server aliascache snd_pursuit3  "monsters/worker/wrkpurs3.wav" 1

server aliascache snd_lostweapon "monsters/worker/wrkpanc1.wav" 1

// CLIENT Initialization Commands
//
// Sound Aliases
client aliascache snd_pain_head1   "monsters/worker/wrkpain9.wav" 1

client aliascache snd_pain1     "monsters/worker/wrkpain1.wav" 1
client aliascache snd_pain2     "monsters/worker/wrkpain2.wav" 1
client aliascache snd_pain3     "monsters/worker/wrkpain3.wav" 1
client aliascache snd_pain4     "monsters/worker/wrkpain4.wav" 1
client aliascache snd_pain5     "monsters/worker/wrkpain5.wav" 1
client aliascache snd_pain6     "monsters/worker/wrkpain6.wav" 1
client aliascache snd_pain7     "monsters/worker/wrkpain7.wav" 1
client aliascache snd_pain8     "monsters/worker/wrkpain8.wav" 1
client aliascache snd_pain9     "monsters/worker/wrkpain9.wav" 1

client aliascache snd_death1    "monsters/worker/wrkdeth1.wav" 1
client aliascache snd_death2    "monsters/worker/wrkdeth2.wav" 1
client aliascache snd_death3    "monsters/worker/wrkdeth3.wav" 1
client aliascache snd_death4    "monsters/worker/wrkdeth4.wav" 1

client aliascache snd_kneefall1 "impact/bodyfall/big/sml1.wav" 1
client aliascache snd_kneefall2 "impact/bodyfall/big/sml2.wav" 1
client aliascache snd_partfall1 "impact/bodyfall/big/med1.wav" 1
client aliascache snd_partfall2 "impact/bodyfall/big/med2.wav" 1
client aliascache snd_partfall3 "impact/bodyfall/big/med3.wav" 1
client aliascache snd_bodyfall1 "impact/bodyfall/big/lrg1.wav" 1
client aliascache snd_bodyfall2 "impact/bodyfall/big/lrg2.wav" 1
client aliascache snd_limp1     "impact/bodyfall/big/drag1.wav" 1
client aliascache snd_whoosh1   "monsters/pinphat/pinmel1.wav" 1
client aliascache snd_whoosh2   "monsters/pinphat/pinmel1.wav" 1

// -----------------------------------------------------------------------------
// MAIN SECTION
//
!main:

// Normal Animations
server run1  3 movementsound
client run1  3 footstep
server run1  7 movementsound
client run1  7 footstep

server walk1  3 movementsound
client walk1  3 footstep
server walk1  9 movementsound
client walk1  9 footstep

server fire1 4 fire
server fire1 4 movementsound
client fire1 4 randomsound snd_whoosh 1 4
server fire1 7 movementsound
client fire1 7 footstep

server fire2 3 fire
server fire2 3 movementsound
client fire2 3 randomsound snd_whoosh 1 4
server fire2 5 movementsound
client fire2 5 footstep

server fire3 3 fire
server fire3 3 movementsound
client fire3 3 randomsound snd_whoosh 1 4
server fire3 5 movementsound
client fire3 5 footstep

server fire4 3 fire
server fire4 3 movementsound
client fire4 3 randomsound snd_whoosh 1 4
server fire4 3 movementsound
client fire4 3 footstep

server death1 first deathsound
client death1 first randomsound snd_death 1 2
server death1     4 movementsound
client death1     4 randomsound snd_bodyfall 1 4
server death1     4 movementsound
client death1     9 randomsound snd_kneefall 1 4

server death1 first deathsound
client death2 first randomsound snd_death 1 2
server death2     7 movementsound
client death2     7 randomsound snd_bodyfall 1 4
server death2    11 movementsound
client death2    11 randomsound snd_kneefall 1 4

server death3 first painsound
client death3 first randomsound snd_pain 1 2
server death3     4 movementsound
client death3     4 footstep
server death3     7 movementsound
client death3     7 footstep
server death3     8 deathsound
client death3     8 randomsound snd_death 1 2
server death3    12 movementsound
client death3    12 randomsound snd_bodyfall 1 4

// Pain Location Based Animations
server pain1 first deathsound
client pain1 first randomsound snd_pain 1 2
server pain1     2 movementsound
client pain1     2 randomsound snd_bodyfall 1 4

client pain_head first randomsound snd_pain_head 1 2
server pain_head first painsound

client pain_arm_left_lower first randomsound snd_pain 1 2
server pain_arm_left_lower first painsound
client pain_arm_left_lower 5 footstep
server pain_arm_left_lower 5 movementsound

client pain_arm_left_upper first randomsound snd_pain 1 2
server pain_arm_left_upper first painsound
client pain_arm_left_upper 5 footstep
server pain_arm_left_upper 5 movementsound

client pain_leg_left_lower first randomsound snd_pain 1 2
server pain_leg_left_lower first painsound
client pain_leg_left_lower 3 footstep
server pain_leg_left_lower 3 movementsound

client pain_leg_left_lower first randomsound snd_pain 1 2
server pain_leg_left_lower first painsound
client pain_leg_left_lower 4 footstep
server pain_leg_left_lower 4 movementsound

client pain_leg_right_lower first randomsound snd_pain 1 2
server pain_leg_right_lower first painsound
client pain_leg_right_lower 2 randomsound snd_bodyfall 1 4
server pain_leg_right_lower 2 movementsound

client pain_leg_right_upper first randomsound snd_pain 1 2
server pain_leg_right_upper first painsound
client pain_leg_right_upper 2 randomsound snd_bodyfall 1 4
server pain_leg_right_upper 2 movementsound

client pain_torso_lower first randomsound snd_pain 1 2
server pain_torso_lower first painsound
client pain_torso_lower 0 footstep
server pain_torso_lower 0 movementsound

client pain_torso_upper first randomsound snd_pain 1 2
server pain_torso_upper first painsound
client pain_torso_upper 0 footstep
server pain_torso_upper 0 movementsound

// Death Location Based Animations

// Crouching Pain Location Based Animations

// Crouching Death Location Based Animations

// Optional Animations
// fix me
//client push1 0 footstep
//server push1 0 movementsound
//client push1 6 footstep
//server push1 6 movementsound

// Scripted Animations

server gibdeath_upper first group head +nodraw
server gibdeath_upper first group torso_upper +nodraw
server gibdeath_upper first group arm_left_upper +nodraw
server gibdeath_upper first group arm_left_lower +nodraw
server gibdeath_upper first group arm_right_upper +nodraw
server gibdeath_upper first group arm_right_lower +nodraw

server gibdeath_upper first group torso_lower +skin1
server gibdeath_upper first group leg_left_upper +skin1
server gibdeath_upper first group leg_left_lower +skin1
server gibdeath_upper first group leg_right_upper +skin1
server gibdeath_upper first group leg_right_lower +skin1

server gibdeath_lower first group torso_lower +nodraw
server gibdeath_lower first group leg_left_upper +nodraw
server gibdeath_lower first group leg_left_lower +nodraw
server gibdeath_lower first group leg_right_upper +nodraw
server gibdeath_lower first group leg_right_lower +nodraw

server gibdeath_lower first group head +skin1
server gibdeath_lower first group torso_upper +skin1
server gibdeath_lower first group arm_left_upper +skin1
server gibdeath_lower first group arm_left_lower +skin1
server gibdeath_lower first group arm_right_upper +skin1
server gibdeath_lower first group arm_right_lower +skin1


// -----------------------------------------------------------------------------
// SOURCESAFE Update Log
//
// $Log:: /Quake 2 Engine/Sin/Base Sin Data/Models/Monster/cworker.def        $
// 
// 48    11/13/98 8:48p Joeske
// Fixed illegal animation refs in run and walk.
// 
// 47    11/07/98 6:02p Joeske
// Adjusted bounding box sizes.
// 
// 46    11/07/98 5:23p Phook
// 
// 45    10/24/98 6:12p Phook
// 
// 44    10/23/98 7:23p Onethumb
// Tweaked health and melee attributes
// 
// 43    10/23/98 4:35p Beau
// 
// 42    10/22/98 11:01p Joeske
// Fixed snd_lostweapon references in files.
// 
// 41    10/20/98 6:00p Onethumb
// 
// 40    10/16/98 9:41p Phook
// setup damages
// 
// 39    10/09/98 11:59p Markd
// Fixed melee attacks etc.
// 
// 38    9/29/98 8:10p Markd
// made cworker work, changed foreman name
//
// 37    9/22/98 12:33p Beau
//
// 36    9/20/98 8:37p Onethumb
// Semi-final revisions complete, almost ready for first half beta
//
// 35    9/20/98 7:14p Onethumb
// Minor changes
//
// 34    9/20/98 7:01p Onethumb
// Sound formatting
//
// 33    9/20/98 4:55p Onethumb
// Fixed idle/twich stuff for Beau
//
// 32    9/20/98 4:46p Onethumb
// Finished updating and fixing
//
// 31    9/14/98 12:03p Onethumb
// Added health
//
// 30    9/13/98 6:39p Onethumb
//
// 29    9/13/98 6:35p Onethumb
//
// 26    9/13/98 6:22p Onethumb
// Minor problems fixed
//
// 25    9/13/98 6:09p Onethumb
// Tweaks to formatting
//
// 24    9/13/98 5:54p Onethumb
// Polished up sounds and animations sections
//
// 23    9/13/98 5:24p Onethumb
// Changed idles to twitch, made idle1 point to death1.  Need to get real idle
// animation.
//
// 22    9/13/98 5:20p Onethumb
// Added footsteps, body falling, etc sounds to animations
//
// 21    9/13/98 4:56p Onethumb
// Resized bounding box
//
// 20    9/13/98 4:49p Onethumb
// Reformatted DEF file
//
// -----------------------------------------------------------------------------
